﻿using Loki.Engine;
using NUnit.Framework;

namespace Luna.Data.Tests
{
    [SetUpFixture]
    public class NamespaceSetUp
    {
        private static bool _Initialized = false;
        [SetUp]
        public void SetUp()
        {
            if (!_Initialized)
            {
                ContextHelper.DefineDataEngine(new SpringEngine());
                ContextHelper.LoadData("assembly://Luna.Data/Luna.Data/data.config");
                ContextHelper.GetDataModel<LunaDataModel>().Install.Initialize();
                _Initialized = true;
            }
        }

        public void TearDown()
        {
            // close database
        }
    }
}
